<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class BlogConfigs extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('configs', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name',250)->comment('配置名称');
            $table->string('info',250)->comment('配置描述');
            $table->string('type',250)->comment('配置类型');
            $table->string('value',5000)->comment('配置值');
            $table->integer('group_id')->unsigned()->default(1)->comment('配置分组');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('configs');
    }
}
